<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
// Route::get('/',"LoginController@home");

Route::get("/changeLocale/{locale}","Controller@setLocaleLang")->name('locale');

//后台首页地址 登陆后才能访问的页面
Route::group(['namespace' => 'Admin', 'middleware' => ["checkuser"]], function(){
    Route::get('/', 'IndexController@index');
});
 
	Route::group(["namespace" => "Api" ],function(){
    //用户列表
    Route::any("/api/user","UserController@getUserLists");
    Route::post("/api/user/add","UserController@addUser");
    Route::post("/api/user/uppwd","UserController@updatePassword");
    Route::post("/api/user/del","UserController@delUser");
    Route::post("/api/user/edit","UserController@editUser");
    Route::get("/api/user/info/{id}","UserController@getUserInfo");
    //
    Route::any("/api/getbutton","AdminController@getButton");
    Route::any("/api/module","AdminController@moduleAuth");
    Route::any("/api/moduleedit","AdminController@moduleAuthEdit");
    //菜单
    Route::any("/api/getMenu","GongziController@getMenu");
    Route::any("/api/getMenuDetail","GongziController@getMenuDetail");
    Route::any("/api/sqInsert","GongziController@sqInsert");
    Route::any("/api/quanxian","GongziController@quanxian");
    //创建组名
    Route::any("/api/createGroup","GongziController@createGroup");
    Route::any("/api/delGroup","GongziController@delGroup");
    Route::any("/api/getGroupList","GongziController@getGroupList");
    Route::any("/api/getGroupData","GongziController@getGroupData");
    Route::any("/api/userToGroup","GongziController@userToGroup");
    Route::any("/api/jichuData","GongziController@jichuData");
    //职务等级
    Route::any("/api/FZWDJList","GongziController@FZWDJList");
    //更新主控隐藏	
    Route::any("/api/updatezhukong","GongziController@updatezhukong");
    //生成number号
    Route::any("/api/createNO","GongziController@createNO");
    
    //工资参数配置信息
    Route::any("/api/getTableConfig","GongziController@getTableConfig");
    Route::any("/api/getConfigAdd","GongziController@getConfigAdd");
    Route::any("/api/getConfigUpdate","GongziController@getConfigUpdate");
    Route::any("/api/getConfigDel","GongziController@getConfigDel");
    Route::any("/api/getErpTableConfig","GongziController@getErpTableConfig");
    
    
    
    Route::any("/api/insertColumn","GongziController@insertColumn");
    Route::any("/api/fileSave","GongziController@fileSave");
    Route::any("/api/commonDataList","GongziController@commonDataList");
    Route::any("/api/getUserList","GongziController@getUserList"); 
    Route::any("/api/getSql","GongziController@getSql"); 
    Route::any("/api/getConfigColumn","GongziController@getConfigColumn"); 
    
    
    Route::any("/api/app2/login","GongziController@login"); 
    //通用
    Route::any("/api/genAdd","GongziController@genAdd"); 
    Route::any("/api/genDel","GongziController@genDel"); 
    Route::any("/api/genList","GongziController@genList");
    Route::any("/api/getdbName","GongziController@getdbName");
    //批量删除
    Route::any("/api/genPlDel","GongziController@genPlDel"); 
    
    //基础资料信息
    Route::any("/api/getfuzhuziliao","BaseController@getfuzhuziliao"); 
    Route::any("/api/editfuzhuziliao","BaseController@editfuzhuziliao"); 
    Route::any("/api/addfuzhuziliao","BaseController@addfuzhuziliao"); 
    Route::any("/api/delfuzhuziliao","BaseController@delfuzhuziliao"); 
    Route::any("/api/homeData","BaseController@homeData"); 
    Route::any("/api/FLookset","BaseController@FLookset"); 
    
    //获取序列号  == 流水号
    Route::any("/api/getDanHao","GongziController@getLiuShuiHao"); 
    
    //发送短信
    Route::any("/api/sendsms","SmsController@sendSms"); 
    Route::any("/api/getsmsCode","SmsController@getsmsCode"); 
    //短信 修改密码
    Route::any("/api/UpdateSmsPass","SmsController@UpdateSmsPass"); 
    
    
    //SyncData 同步数据
    Route::any("/api/SyncData","BJController@SyncData"); 
    //vxetableBillConfig  -- 单据字段
    Route::any("/api/vxetableBillConfig","BJController@vxetableBillConfig");
    //分析报表 数据
    Route::any("/api/fenxibbData","BJController@fenxibbData");
    // 各部门明细 
    Route::any("/api/FBMluruMx","BJController@FBMluruMx");
    //取各个部门明细 - 报价单 
    Route::any("/api/FBMluruMxBAOJIA","BJController@FBMluruMxBAOJIA");
    //正式后续 -- 加账 
    Route::any("/api/FhouxuJZ","BJController@FhouxuJZ");
    Route::any("/api/FhouxuJZDel","BJController@FhouxuJZDel");
    Route::any("/api/FhouxuJZSave","BJController@FhouxuJZSave");
    
    
    //完工列表
    Route::any("/api/finishList","GongziController@finishList");
    Route::any("/api/gxFname","GongziController@gxFname");
    Route::any("/api/wgAdd","GongziController@wgAdd");
    Route::any("/api/wgUpdate","GongziController@wgUpdate");
    
    //erp职员
    Route::any("/api/erpZhiyuan","GongziController@erpZhiyuan");
    Route::any("/api/zyInsert","GongziController@zhiyuanInsert");
    Route::any("/api/zyDel","GongziController@zhiyuanDel");
    //更新密码
    Route::any("/api/updatePass","GongziController@updatePass");

    //计算
    Route::any("/api/jisuan","GongziController@jisuan");
    Route::any("/api/scgzSave","GongziController@scgzSave");
    
    Route::any("/api/Fstatus","GongziController@Fstatus");
    Route::any("/api/FstatusZS","GongziController@FstatusZS");
    Route::any("/api/FstatusZSJZ","GongziController@FstatusZSJZ");
    
    Route::any("/api/FstatusTS","GongziController@FstatusTS");
    Route::any("/api/FQXMenu","GongziController@FQXMenu");
    Route::any("/api/groupToQXDetail","GongziController@groupToQXDetail");
    Route::any("/api/appUser","GongziController@appUser");
    
    Route::any("/api/setGongshi","GongziController@setGongshi");
    Route::any("/api/downFileUrl","GongziController@downFileUrl");
    Route::any("/api/downloadFile","GongziController@downloadFile");
    
    //权限菜单 
    Route::any("/api/FQXLeftView","GongziController@FQXLeftView");
    Route::any("/api/FQXRightContent","GongziController@FQXRightContent");
    Route::any("/api/getQXDetail","GongziController@getQXDetail");
    
    //导入字段标题
    Route::any("/api/getImportField","GongziController@getImportField");
    
    //业务确认 
    Route::any("/api/ywQR","GongziController@ywQR");
    
    
    //////参数获取
    Route::any("/api/getCSData","BaseController@getCSData");
    //加账设置 
    Route::any("/api/FJZset","BaseController@FJZset");
    //加账 -- 获取fmodel
    Route::any("/api/FJZModel","BaseController@FJZModel");
    //加账 -- 编辑
    Route::any("/api/FJZEdit","BaseController@FJZEdit");
    //加账 采购 -- 保存
    Route::any("/api/FJZSave","BaseController@FJZSave");
    //部门基础设置 
    Route::any("/api/FSetbumen","BaseController@FSetbumen");
    //参数 设置 船级社 
    Route::any("/api/FcenshuCSJSet","BaseController@FcenshuCSJSet");
    
    
    
    //基础设置
    Route::any("/api/FSetBaseSave","BaseController@FSetBaseSave");
    //加账采购  --机型
    Route::any("/api/FBaseCGJZModel","BaseController@FBaseCGJZModel");
    //采购成本  =--保存
    Route::any("/api/FCGCBSave","BaseController@FCGCBSave");
    //导入  采购成本
    Route::any("/api/FImportCG","BaseController@FImportCG");
    //业务 导入  加账 
    Route::any("/api/FYWImportJZ","BaseController@FYWImportJZ");
    Route::any("/api/FImportJZDetail","BaseController@FImportJZDetail");
    // 业务
    Route::any("/api/yewuQrJZ","BaseController@yewuQrJZ");
    // 业务 需求  -- 保存 
    Route::any("/api/yewuSaveJZ","BaseController@yewuSaveJZ");
    // 业务 需求  -- 删除
    Route::any("/api/yewuDelJZ","BaseController@yewuDelJZ");
    
    //导入通用
    Route::any("/api/FImportGEN","BaseController@FImportGEN");
    Route::any("/api/FImportGENJS","BaseController@FImportGENJS");
    
    //导入 -- 加账 --》业务  
    Route::any("/api/FHXJZImportYW","BaseController@FHXJZImportYW");
    //导入 -- 加账 --》 ，采购技术 
    Route::any("/api/FJZImportCGJS","BaseController@FJZImportCGJS");
    // FImportICER
    Route::any("/api/FImportICER","BaseController@FImportICER");
    
 	//导入加账 管理 excel  
    Route::any("/api/FImportIJZ","BaseController@FImportIJZ");
    //导入采购成本管理 
    Route::any("/api/FImportCGCB","BaseController@FImportCGCB");
    
    //基础设置删除-- 加账技术 
    Route::any("/api/FJzDel","BaseController@FJzDel");
    //基础设置删除-- 采购成本
    Route::any("/api/FCGDel","BaseController@FCGDel");
    Route::any("/api/FstatusCheck","BaseController@FstatusCheck");
    Route::any("/api/task","BaseController@task");
    
    
    // SCRSet -- 设置
    Route::any("/api/FSCRSetList","BaseController@FSCRSetList");
    Route::any("/api/FSCRSetSave","BaseController@FSCRSetSave");
    
    //登录 ，退出
    Route::any("/api/interRun","YcangController@interRun");
    Route::any("/api/openRun","YcangController@openRun");
    
    //后台列表 --登录用户
    Route::any("/api/admin","AdminController@getUserLists");
    Route::any("/api/admin/add","AdminController@addUser");
    Route::any("/api/admin/del","AdminController@delUser");
    Route::any("/api/admin/edit","AdminController@editUser");
    
    
    //报价
	//公共字段设置
    Route::any("/api/accessField","BJController@accessField");
    Route::any("/api/getaccessField","BJController@getaccessField");
    //参数保存
    Route::any("/api/cenShuSave","BJController@cenShuSave");
    
    
    
    //Vue-table 字段获取
    Route::any("/api/vxetableConfig","BJController@vxetableConfig");
    //Vue-table 数据获取 
    Route::any("/api/vxeGenList","BJController@vxetableGenList");
    //Vue-table 新增
    Route::any("/api/vxetableGenAdd","BJController@vxetableGenAdd");
    //Vue-table 新增 单独 
    Route::any("/api/vxetableGenAddSingle","BJController@vxetableGenAddSingle");
    
    //Vue-table 数据获取
    Route::any("/api/vxeCjSetList","BJController@vxeCjSetList");
    //Vue-table 数据新增
    Route::any("/api/vxeCjSetAdd","BJController@vxeCjSetAdd");
    
    // 船级社 确认 
    Route::any("/api/cjsBaseQR","BJController@cjsBaseQR");
    Route::any("/api/cjsBaseSave","BJController@cjsBaseSave");
    
    
    
    // 序时薄
    Route::any("/api/XsbList","BJController@XsbList");
    // 单据 
    Route::any("/api/BillList","BJController@BillList");
    ////// -- 单据新增
    Route::any("/api/billGenAdd","BJController@billGenAdd");
    /// -- 单据编辑
    Route::any("/api/billGenEdit","BJController@billGenEdit");
    /// -- 单据删除 
    Route::any("/api/billGenDel","BJController@billGenDel");
    // -- 单据list 
    Route::any("/api/billGenList","BJController@billGenList");
    
    // 走流程业务机型确认
    Route::any("/api/zlcJXQR","BJController@zlcJXQR");
    // 走流程业务机型确认  -- 新增
    Route::any("/api/zlcJXQRAdd","BJController@zlcJXQRAdd");
    
    //经营报价 -- 点击明细
    Route::any("/api/getZLCMX","BJController@getZLCMX");
    //经营报价 -- 加载 
    Route::any("/api/yuSuanZLCJYBJ","BJController@yuSuanZLCJYBJ");
    //经营报价 -- 保存
    Route::any("/api/yuSuanZLCJYBJSave","BJController@yuSuanZLCJYBJSave");
    
    
    //正式报价 -- 点击明细
    Route::any("/api/getBAOJIAMX","BJController@getBAOJIAMX");
    //正式报价  加账技术财务采购 -- 点击明细 getJZBAOJIAMX
    Route::any("/api/getJZBAOJIAMX","BJController@getJZBAOJIAMX");
    //正式报价  加账技术财务采购 -- 点击机型详情 
    Route::any("/api/getJZBAOJIAMXDetail","BJController@getJZBAOJIAMXDetail");
    //正式报价(后续)添加   -- 手动新增 
    Route::any("/api/hxGenAdd","BJController@hxGenAdd");
    
    
    //  -- 预算成本生成 
    Route::any("/api/yuSuanCB","BJController@yuSuanCB");
    Route::any("/api/yuSuanCBSave","BJController@yuSuanCBSave");
    
    Route::any("/api/yuSuanZLC","BJController@yuSuanZLC");
    Route::any("/api/yuSuanZLCSave","BJController@yuSuanZLCSave");
    
    //  --   生成报价单 
    Route::any("/api/ScBaoJiaDan","BJController@ScBaoJiaDan");
    Route::any("/api/ScBaoJiaDanJZ","BJController@ScBaoJiaDanJZ");
    
    Route::any("/api/ScBaoJiaDanZLC","BJController@ScBaoJiaDanZLC");
    //签订合同
    Route::any("/api/QdhtBaojia","BJController@QdhtBaojia");
    Route::any("/api/ScQdhtBaojia","BJController@ScQdhtBaojia"); 
    Route::any("/api/QdhtBaojiaSave","BJController@QdhtBaojiaSave"); 
    
    
    //加账 --生成数据
    Route::any("/api/JZbaojiadan","BJController@JZbaojiadan");
    Route::any("/api/JZBaojiaSave","BJController@JZBaojiaSave");
    Route::any("/api/JZBaojiaMX","BJController@JZBaojiaMX");
    //正式报价 -- 采购 -- 技术 -其他 是否加账明细
    Route::any("/api/getZSBaoJiaMX","BJController@getZSBaoJiaMX");
    
    
    //已完成
    Route::any("/api/Zswancheng","BJController@Zswancheng");
    
    
    //报表分析 -- 新增引入
    Route::any("/api/BbfenxiAdd","BJController@BbfenxiAdd");
    //报表分析 -- 新增保存
    Route::any("/api/BbfenxiSave","BJController@BbfenxiSave");
    Route::any("/api/Bbfenxi","BJController@Bbfenxi");
    //报表分析U8 获取 
    Route::any("/api/BbfenxiU8","BJController@BbfenxiU8");
    //报表分析U8 获取  历史
    Route::any("/api/BbfenxilsU8","BJController@BbfenxilsU8");
    //
    Route::any("/api/Bbfenxicgcb","BJController@Bbfenxicgcb");
    //
    Route::any("/api/Bbfenxijzcb","BJController@Bbfenxijzcb");
    // 业务需求复制
    Route::any("/api/ywCopy","BJController@ywCopy");
    
    //正式报价 -- 生成单 
    Route::any("/api/zsbjscd","BJController@zsbjscd");
    Route::any("/api/getBAOJIAMXQdht","BJController@getBAOJIAMXQdht");
     
    
    //燃油 --管理 
    Route::any("/api/cgMainranyou","RanyouController@cgMainranyou");
    Route::any("/api/cgMainranyouSave","RanyouController@cgMainranyouSave");
    Route::any("/api/ranyouhuizongSave","RanyouController@ranyouhuizongSave");
    
    Route::any("/api/ranyouList","RanyouController@ranyouList");
    Route::any("/api/ranyouSave","RanyouController@ranyouSave");
    Route::any("/api/huizonglist","RanyouController@huizonglist");
    // SRC/ICER 管理  fmodel获取技术 列表
    Route::any("/api/getJSModelData","RanyouController@getJSModelData");
    // 燃油设置信息
    Route::any("/api/getRanYouSet","RanyouController@getRanYouSet");
    // 燃油设置新增 
    Route::any("/api/ranYouSetAdd","RanyouController@ranYouSetAdd");
    
    
    //甲醇机 --管理
    Route::any("/api/cgMainjiachun","JiaChunController@cgMainjiachun");
    Route::any("/api/cgMainjiachunSave","JiaChunController@cgMainjiachunSave");
    Route::any("/api/jiachunhuizongSave","JiaChunController@jiachunhuizongSave");
    
    Route::any("/api/jiachunList","JiaChunController@jiachunList");
    Route::any("/api/jiachunSave","JiaChunController@jiachunSave");
    Route::any("/api/huizonglist","JiaChunController@huizonglist");
    // SRC/ICER 管理  fmodel获取技术 列表
    Route::any("/api/getJSModelData","JiaChunController@getJSModelData");
    // 甲醇机 设置信息
    Route::any("/api/getjiachunSet","JiaChunController@getjiachunSet");
    // 甲醇机 设置新增
    Route::any("/api/jiachunSetAdd","JiaChunController@jiachunSetAdd");
    //甲醇机 
    Route::any("/api/jiachunYouHao","JiaChunController@jiachunYouHao");
    
    
    
    ///SCRegr 管理
    Route::any("/api/SCRegrSave","SCRegrController@SCRegrSave");
    
    
    
    //备件保存
    Route::any("/api/beijianSave","BeijianController@beijianSave");
    //U8 获取
    Route::any("/api/getU8","BeijianController@getU8");
    //删除
    Route::any("/api/beijianDel","BeijianController@beijianDel");
    //审核 
    Route::any("/api/beijianStatus","BeijianController@beijianStatus");
    //编辑 -- 
    Route::any("/api/beijianEdit","BeijianController@beijianEdit");
    // 退回
    Route::any("/api/tuihui","BeijianController@tuihui");
    //测试
    Route::any("/api/ceshi","BeijianController@ceshi");
    //备件 完成 
    Route::any("/api/wancheng","BeijianController@wancheng");
    //备件反审
    Route::any("/api/UnCheckFstatus","BeijianController@UnCheckFstatus");
    //备件导入保存 --采购
    Route::any("/api/beijianCGImport","BeijianController@beijianCGImport");
    //用户名称 == 树形结构
    Route::any("/api/beijianTree","BeijianController@beijianTree");
    //备件导入
    Route::any("/api/beijianImport","BeijianController@beijianImport");
    
    
    
    
    //成本 --CB 采购成本 ， 加账成本
    Route::any("/api/getCBData","CBController@getCBData");
    
    
    //test
    Route::any("/gz/test","GongziController@test"); 
    

});

Route::get('/login',"LoginController@index");
Route::post('/login',"LoginController@login");
Route::any('/excel/export','ExcelController@export');
Route::any('/api/download','ExcelController@download');
Route::any('/welcome',"LoginController@welcome");
Route::any('/getDbData',"LoginController@getDbData");
Route::any('/excel/jsImport','ExcelController@jsImport');
Route::any('/excel/zyImport','ExcelController@zyInsertImport');
Route::any('/api/groupImport','ExcelController@groupImport');

Route::any('/install',"LoginController@install");
Route::any('/api/installDB',"LoginController@installDB");
Route::any('/api/testenv',"LoginController@testenv");

Route::any('/excel/gongziTiaoxz','ExcelController@gongziTiaoxz');
Route::any('/excel/jjImport','ExcelController@jjImport');
Route::any('/excel/basefyImport','ExcelController@basefyImport');

Route::any('/excel/gztSingle','ExcelController@gztSingle');


//根访问
Route::any('/',"IndexController@index");
Route::any('/index2',"IndexController@index2");
//Home访问
Route::group(['namespace' => 'Home'], function(){
    Route::get('/home/index', 'IndexController@index');
    Route::get('/home/test', 'IndexController@test');
    Route::get('/home/customer', 'IndexController@customer');
});

